# Total number of IPv6 (each ipv6 consists of 128 bits)
no_of_ipv6 = 2 ** 128

no_of_digits = len(str(no_of_ipv6))

print(no_of_digits)     # => 39